package com.totem.product.api;

import com.totem.base.model.PageVO;
import com.totem.base.model.Result;
import com.totem.customer.vo.FavoritePageVO;
import com.totem.product.vo.*;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;
import java.io.IOException;

@Tag(name="ITProductServiceApi", description="产品信息服务")
public interface ITProductServiceApi {
    @Operation(summary="查询商品详情")
    @GetMapping("/product/getInfoById")
    @ResponseBody
    Result<ProductVO> getInfoById(@RequestParam(name="productId") Long productId);
    @Operation(summary="分页展示产品列表")
    @PostMapping("/product/page")
    @ResponseBody
    Result<PageVO<ProductVO>> productPage(@RequestBody @Valid ProductPageVO vo);
}
